Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 6 - Expressions


Script Properties

Script properties are labeled containers for values that you can use in much the same way you use variables. The value of a script property persists until you recompile the script that contains it, and you can easily set the property's initial value without resetting it each time the script is run. You can accomplish the same thing with a global variable, but it is usually more convenient to use a property for this purpose.

This section describes how to define script properties.

Note
The description of script properties in this section assumes that you are using the Script Editor application supplied with AppleScript. Other script editors might not support persistence of script properties. If you are using a different script editor, check its documentation to see how it handles script properties.

Subtopics
Defining Script Properties
Using Script Properties
Scope of Script Properties

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996